import { defHttp } from '/@/utils/http/axios';
import { ContentTypeEnum } from '/@/enums/httpEnum';

enum Upi {
  getUserProjectList = '/admin-api/system/user-project/page',
  getUserProjectAdd = '/admin-api/system/user-project/create',
  getUserProjectEdit = '/admin-api/system/user-project/update',
  getUserProjectDelete = '/admin-api/system/user-project/delete',
  getUserProjectInfo = '/admin-api/system/user-project/get',


}
/**
 * @description: 关联项目
 */
export const userProjectList = (params?: any) => {
  return defHttp.get<any>({ url: Upi.getUserProjectList, params });
};
export const userProjectAdd = (params?: any) => {
  return defHttp.post<any>({ url: Upi.getUserProjectAdd, params });
};
export const userProjectEdit = (params?: any) => {
  return defHttp.put<any>({ url: Upi.getUserProjectEdit, params });
};
export const userProjectDelete = (params: any) => {
  return defHttp.delete<any>({ url: Upi.getUserProjectDelete, params, headers: { 'Content-Type': ContentTypeEnum.FORM_URLENCODED } });
};
export const userProjectInfo = (params?: any) => {
  return defHttp.get<any>({ url: Upi.getUserProjectInfo, params });
};
